package cn.lyq.card.data.api

import cn.lyq.card.data.model.*
import cn.lyq.card.global.Const
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.Header
import retrofit2.http.POST

interface RankService {

    @POST("api/v1/rankingType")
    suspend fun getRankType(
        @Header("token") token: String = Const.token
    ): ResponseInfo<MutableList<RankTypeInfo>>

    @POST("api/v1/rankingList")
    @FormUrlEncoded
    suspend fun getRankList(
        @Field("type_id") type_id: Int,
        /** 1.日版 2.月版 3.总版*/
        @Field("type") type: Int,
        @Header("token") token: String = Const.token
    ): ResponseInfo<RankWrapInfo>

}